
#只执行一个可执行程序，谁在前面最终执行谁
#myprocess:myprocess.c
#	gcc -o $@ $^ -std=c++11
#
#mytest:mytest.cc
#	g++ -o $@ $^ -std=c++11
#.PHNOH:clean
#clean:
#	rm -rf myprocess mytest
#
#改进，同时生成两个可执行程序


.PHONY:all
all:myprocess mytest
myprocess:myprocess.c
	gcc -o $@ $^ 

mytest:mytest.cc
	g++ -o $@ $^ -std=c++11
.PHNOH:clean
clean:
	rm -rf myprocess mytest

#改进，同时生成两个可执行程序



